<?php 
if( !empty($uploaderrors)){ foreach ($uploaderrors as $error )  {?>
<div class=' grid_11 error aligncenter' >
	<?php echo $error?>
</div>
<?php } }?>
<?php
$attributes = array('class' => 'uploadform', 'id' => 'imageuploadform');
$hidden = array('upload_submitted' => true );
echo form_open_multipart($form_address, $attributes,$hidden); ?>
<?php
if( empty($filecreated) )$filecreated = FALSE;
if($no_existing && $filecreated!= TRUE ){
?>
<div class="grid_11 nicebutton aligncenter margin_top10" >
<input type="submit" name="deleteCat" value="Delete this category" />
</div>
<?php }?>
<h1 class="aligncenter grid_10">Upload Image</h1>
<div class="grid_3 alignright" >Upload a new image</div>
<div class="grid_8 nicebutton" >

<input type="file" name="imgupload" size="40" />
<input type="submit" value="upload" />
</div>
</form>